package com.cy.pattern.singleton;

/**
 * Created by yun.chen on 2015/9/28.
 */
public class Test {

    public static void main(String[] args) {
        SingletonA a1 = SingletonA.getInstance();
        SingletonA a2 = SingletonA.getInstance();

        System.out.println(a1 == a2);

        SingletonB b1 = SingletonB.getInstance();
        SingletonB b2 = SingletonB.getInstance();

        System.out.println(b1 == b2);
    }
}
